package com.you.atlas.web.member.module.screen;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.dataresolver.Param;
import com.you.common.ibatis.data.DataList;
import com.you.common.webx.AuthContext;
import com.you.member.biz.service.NotifyService;

public class NotifyList {

    @Autowired
    private NotifyService notifyService;

    public void execute(@Param("pageNo") int pageNo, Context context) {
        DataList dataList = notifyService.queryByMemberId(pageNo, AuthContext.getContext().getMemberId());
        notifyService.clear(AuthContext.getContext().getMemberId());
        context.put("dataList", dataList);
    }
}
